class PPUserInfoManager {
    factory PPUserInfoManager() =>_getInstance();
    static PPUserInfoManager get instance => _getInstance();
    static PPUserInfoManager _instance;
    PPUserInfoManager._internal() {
        // 初始化
    }
    static PPUserInfoManager _getInstance() {
        if (_instance == null) {
            _instance = new PPUserInfoManager._internal();
        }
        return _instance;
    }

    Map userInfo = {};


    getUserInfo() {
        if(userInfo.isNotEmpty) {

            
        } else {
            return {};
        }
    }

    setUserInfo(Map info) {
        userInfo = info;
    }


    String getRegId() {
        if(userInfo.isNotEmpty) {
            final String regId = userInfo["regId"];
            return regId != null && regId.isNotEmpty ? regId : "";
        } else {
            return "";
        }
    }

    String getClientSessionKey() {
        if(userInfo.isNotEmpty) {
            final String sessionKey = userInfo["sessionKey"];
            return sessionKey != null && sessionKey.isNotEmpty ? sessionKey : "";
        } else {
            return "";
        }
    }

}